<template>
	<view class="container">
		<image v-if="!hideIcon" class="emptyIcon" src="/static/empty.png"></image>
		<text>{{text}}</text>
	</view>
</template>

<script>
	export default {
		name: "empty-page",
		props: {
			text: {
				typeof: String,
				default: '暂无数据'
			},
			hideIcon: {
				typeof: Boolean,
				default: false
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style scoped lang="scss">
	@import url("../../styles/common.scss");

	.container {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
		padding: var(--margin-vertical);
		font-size: 14px;
		color: #666;
	}

	.emptyIcon {
		width: 160px;
		height: 160px;
	}
</style>